package Classwork;

import java.lang.annotation.Target;

public class Demo09 {
    public static void main(String[] args){
        String x1 = "Hello java";
        String x2 = "Hello java";
        if(x1.equals(x2)){
            String y1 = x1.replace(" ","");
            System.out.println(y1);
            String y2 = y1.replace("java","word");
            System.out.println(y2);
        }
    }
}
